package org.example.mybatis3.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.mybatis3.entity.blog.Blog;

import java.util.List;

@Mapper
public interface BlogMapper {
    Blog selectBlogWithAuthor(Long id);
    Blog selectBlogWithAuthorBySelect(Long id);
    List<Blog> selectAllBlogs();
    List<Blog> selectAllBlogsWithAuthor();

    Blog selectBlogWithPostsBySelect(Long id);
    Blog selectBlogWithPosts(Long id);
}
